/*
Script: Core.js

Copyright 2005-2007 Netvibes Ltd.
All rights reserved.

*/

if (typeof UWA == "undefined") var UWA = {};

UWA.extend = function() {
    for (var property in arguments[1]) arguments[0][property] = arguments[1][property];
    return arguments[0];
}

UWA.merge = function() {
    for (var property in arguments[1]) {
      if(typeof arguments[0][property] == "undefined")
        arguments[0][property] = arguments[1][property];
    }
    return arguments[0];
}

UWA.log = function(string) {
    if (window.console) console.log(string); // firebug, safari
    else if (window.opera) opera.postError(string);
    // else if (window.widget) window.alert(string); // dashboard
    // else window.alert(string); // IE
}